package club.baimahu.pencil.domain.entity.location;

import club.baimahu.pencil.domain.entity.tree.TreeNode;
import lombok.Data;

@Data
public class DefaultLocation implements Location{

    TreeNode node1;
    TreeNode node2;
    TreeNode node3;

    String detailAddress;


    @Override
    public String getAddress() {
        return node1.nodeName()+node2.nodeName()+node3.nodeName()+detailAddress;
    }
}
